<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:core="http://www.contact.core.com/contacts/core/ui"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:common="http://www.contact.common.com/contacts/ui"
        >
<!--@elvariable id="reRender" type="java.lang.Object"-->
<ui:component>
    <common:editorForInfo reRender="#{reRender}" bean="#{basicInformation}">
        <ui:define name="panelBody">
            <h:panelGrid columns="2">

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.genderLabel}"/>
                </h:panelGroup>
                <h:panelGrid columns="2">
                    <h:selectOneRadio value="#{basicInformationSessionBean.information.male}">
                        <f:selectItem itemValue="true" itemLabel="Male"/>

                        <f:selectItem itemValue="false" itemLabel="Female"/>
                    </h:selectOneRadio>
                </h:panelGrid>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.birthdayLabel}"/>
                </h:panelGroup>
                <common:birthdayComboxs/>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.relationStatusLabel}:"/>
                </h:panelGroup>
                <rich:comboBox value="#{basicInformationSessionBean.information.relationStatus}"
                               enableManualInput="false"
                               selectFirstOnUpdate="false"
                               defaultLabel="#{resources.relationStatusLabe}"
                               width="100px">
                    <f:selectItems value="#{basicInformation.relationStatus}"/>
                </rich:comboBox>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.interestedInLabel}:"/>
                </h:panelGroup>
                <h:panelGrid cellpadding="0" columns="2">
                    <h:selectBooleanCheckbox value="#{basicInformationSessionBean.interestedIn.interestedInMen}"/>
                    <h:outputLabel value="#{resources.menLabel}"/>
                </h:panelGrid>


                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value=""/>
                </h:panelGroup>
                <h:panelGrid cellpadding="0" columns="2">
                    <h:selectBooleanCheckbox value="#{basicInformationSessionBean.interestedIn.interestedInWomen}"/>
                    <h:outputLabel value="#{resources.womenLabel}"/>
                </h:panelGrid>


                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.lookingForLabel}:"/>
                </h:panelGroup>
                <h:panelGrid cellpadding="0" columns="2">
                    <h:selectBooleanCheckbox value="#{basicInformationSessionBean.interestedIn.lookForFriendship}"/>
                    <h:outputLabel value="#{resources.friendshipLabel}"/>
                </h:panelGrid>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value=""/>
                </h:panelGroup>
                <h:panelGrid cellpadding="0" columns="2">
                    <h:selectBooleanCheckbox value="#{basicInformationSessionBean.interestedIn.lookForLinking}"/>
                    <h:outputLabel value="#{resources.linkingLabel}"/>
                </h:panelGrid>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value=""/>
                </h:panelGroup>
                <h:panelGrid cellpadding="0" columns="2">
                    <h:selectBooleanCheckbox value="#{basicInformationSessionBean.interestedIn.lookForRelation}"/>
                    <h:outputLabel value="#{resources.relationLabel}"/>
                </h:panelGrid>

                <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.politicalViewLabel}:"/>
                </h:panelGroup>
                <h:inputText value="#{basicInformationSessionBean.information.politicalOption}"/>

                 <h:panelGroup layout="block" style="text-align:right;">
                    <h:outputLabel value="#{resources.religionViewLabel}:"/>
                </h:panelGroup>
                <h:inputText value="#{basicInformationSessionBean.information.religionId}"/>
            </h:panelGrid>

        </ui:define>
    </common:editorForInfo>

</ui:component>


</html>
